from django.shortcuts import render
from django.http import JsonResponse


def pro(request):
    product = dict()
    product["msg"] = "sucess"
    product["data"] = [
                          {
                              "goodsId": 1,
                              "goodsImg": "https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2562987273,1767534173&fm=26&gp=0.jpg",
                              "goodsName": '香辣鸡腿堡',
                              "price": 18
                          },
                          {
                              "goodsId": 2,
                              "goodsImg": "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2564910950,1834367377&fm=26&gp=0.jpg",
                              "goodsName": '田园鸡腿堡',
                              "price": 15
                          },
                          {
                              "goodsId": 3,
                              "goodsImg": "https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1531367900,1417149154&fm=26&gp=0.jpg",
                              "goodsName": '和风汉堡',
                              "price": 15
                          }
                      ], [
                          {
                              "goodsId": 5,
                              "goodsImg": "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1909702939,3641053654&fm=26&gp=0.jpg",
                              "goodsName": '脆皮炸鸡腿',
                              "price": 10
                          },
                          {
                              "goodsId": 6,
                              "goodsImg": "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2403701431,4241101067&fm=26&gp=0.jpg",
                              "goodsName": '魔法鸡块',
                              "price": 20
                          }
                      ], [
                          {
                              "goodsId": 7,
                              "goodsImg": "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1841260367,1957070272&fm=26&gp=0.jpg",
                              "goodsName": '可乐大杯',
                              "price": 10
                          },
                          {
                              "goodsId": 8,
                              "goodsImg": "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1954690961,420579111&fm=26&gp=0.jpg",
                              "goodsName": '雪顶咖啡',
                              "price": 18
                          },
                      ], [
                          {
                              "goodsId": 4,
                              "goodsImg": "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3518891202,4225817532&fm=26&gp=0.jpg",
                              "goodsName": '快乐全家桶',
                              "price": 80
                          },
                          {
                              "goodsId": 9,
                              "goodsImg": "https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1689985721,388706893&fm=26&gp=0.jpg",
                              "goodsName": '幸福全家桶',
                              "price": 100
                          },
                      ], [
                          {
                              "goodsId": 1,
                              "goodsName": '香辣鸡腿堡',
                              "price": 18
                          },
                          {
                              "goodsId": 2,
                              "goodsName": '田园鸡腿堡',
                              "price": 15
                          },
                          {
                              "goodsId": 3,
                              "goodsName": '和风汉堡',
                              "price": 15
                          },
                          {
                              "goodsId": 4,
                              "goodsName": '快乐全家桶',
                              "price": 80
                          },
                          {
                              "goodsId": 5,
                              "goodsName": '脆皮炸鸡腿',
                              "price": 10
                          },
                          {
                              "goodsId": 6,
                              "goodsName": '魔法鸡块',
                              "price": 20
                          },
                          {
                              "goodsId": 7,
                              "goodsName": '可乐大杯',
                              "price": 10
                          },
                          {
                              "goodsId": 8,
                              "goodsName": '雪顶咖啡',
                              "price": 18
                          },
                          {
                              "goodsId": 9,
                              "goodsName": '大块鸡米花',
                              "price": 15
                          },
                          {
                              "goodsId": 20,
                              "goodsName": '香脆鸡柳',
                              "price": 17
                          }
                      ],
    return JsonResponse(product)
